﻿using MongoDB.Driver;

namespace WebApplication1.Data;

public static class MongoClientFactory
{
    private static MongoClient? _client;

    public static MongoClient GetClient(string connectionString)
    {
        return _client ??= new MongoClient(connectionString);
    }
}
